﻿@{
    ViewBag.Title = "Details"; 
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    layui.use(['jquery', 'form', 'laydate', 'tablePlug', 'common'], function () {
        var form = layui.form,
            $ = layui.$,
            common = layui.common,
            laydate = layui.laydate;
        var keyValue = $.request("keyValue");
        //权限字段
        common.authorizeFields('adminform');
        //此处需修改
        //类型为时间时
        //laydate.render({
            //elem: '#F_Birthday'
            //, btns: ['clear', 'now']
            //, trigger: 'click',
            //format: 'yyyy-MM-dd',
        //});

        $(function () {
            initControl();
            common.ajax({
                url: '/FixedAssets/Assetsrecords/GetFormJson',
                dataType: 'json',
                data: { keyValue: keyValue },
                async: false,
                success: function (data) {
                    common.val('adminform', data);
                    common.setReadOnly('adminform');
                    form.render();
                 }
            });
       });

       function initControl() {
           //此处需修改
           //绑定数据源
           //类型为下拉框时
       }
   });
</script>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div class="layui-form layuimini-form" lay-filter="adminform">
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">资产编号</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_AssetNo" name="F_AssetNo" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">主类</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_HierarchyName" name="F_HierarchyName" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">资产名称</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_Name" name="F_Name" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">规格型号</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_ChartNumber" name="F_ChartNumber" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">发票号</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_InvoiceNo" name="F_InvoiceNo" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">单价</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_Price" name="F_Price" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">使用年限</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_UseAge" name="F_UseAge" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">获取方式</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_Access" name="F_Access" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">采购形式</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_PurchaseForm" name="F_PurchaseForm" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">使用状况</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_UseStatus" name="F_UseStatus" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">添加人代码</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_AddUserCode" name="F_AddUserCode" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">添加时间</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_AddDate" name="F_AddDate" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">使用方向</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_UseDirection" name="F_UseDirection" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">资产状态</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_GlobalStatus" name="F_GlobalStatus" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">资产代码</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_Code" name="F_Code" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">子类</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_EquipmentName" name="F_EquipmentName" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">凭证号</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_CreditNo" name="F_CreditNo" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">计量单位</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_Measure" name="F_Measure" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">价值类型</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_ValueType" name="F_ValueType" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">用途</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_Purpose" name="F_Purpose" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">经费来源</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_FinancialSource" name="F_FinancialSource" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">购置日期</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_BuyDate" name="F_BuyDate" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">添加人</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_AddUserName" name="F_AddUserName" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">折旧方式</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_DepreciationMethod" name="F_DepreciationMethod" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                       </div>
                       <div class="layui-form-item">
                    <div class="layui-inline layui-hide">
                        <label class="layui-form-label required">备注</label>
                        <div class="layui-input-inline">
                            <input type="text" id="F_Note" name="F_Note" lay-verify="required" class="layui-input">
                        </div>
                    </div>
            </div>
        </div>
    </div>
</body>

